<!DOCTYPE html>
<html lang="es">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="Karina Kreth Administracion">
        <meta name="author" content="Araujo-Baico">

        <title>Karina Kreth :: Admin</title>
        {{ HTML::style('//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css') }}
        {{-- HTML::style('assets/admin/css/bootstrap.min.css') --}}
    </head>
    <style>
        body {
            padding-top: 40px;
            padding-bottom: 40px;
            background-color: #eee;
        }
        .alert {
            max-width: 300px;
            margin: 0 auto;
        }

        .form-signin {
            max-width: 330px;
            padding: 15px;
            margin: 0 auto;
        }
        .form-signin .form-signin-heading,
        .form-signin .checkbox {
            margin-bottom: 10px;
        }
        .form-signin .form-control {
            position: relative;
            height: auto;
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
            padding: 10px;
            font-size: 16px;
        }
        .form-signin .form-control:focus {
            z-index: 2;
        }
        .form-signin input[type="text"] {
            margin-bottom: -1px;
            border-bottom-right-radius: 0;
            border-bottom-left-radius: 0;
        }
        .form-signin input[type="password"] {
            margin-bottom: 10px;
            border-top-left-radius: 0;
            border-top-right-radius: 0;
        }

    </style>
    
    <body>
        <div class="container">
        <!-- if there are creation errors, they will show here -->
        @if (Session::has('errors'))
        <div class="alert alert-danger">{{ HTML::ul($errors->all()) }}</div>
        @endif

        @if (Session::has('message'))
        <div class="alert alert-info">{{ Session::get('message') }}</div>
        @endif

            
            {{ Form::open( ['url' => 'login', 'class'=>'form-signin', 'role' => 'form'] ) }}
                <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
                {{ Form::text('user', Input::old('user'), ['class'=>'form-control', 'placeholder'=>'User', 'required', 'autofocus'] ) }}
                {{ Form::password('password', ['class'=>'form-control', 'placeholder' => 'Password', 'required']) }}
                {{ Form::submit('Login', ['class'=>'btn btn-lg btn-primary btn-block']) }}
            {{ Form::close() }}


            

        {{-- HTML::script('//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js') --}}
        {{ HTML::script('//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js') }}
        {{-- HTML::script('assets/admin/js/bootstrap.min.js') --}}
    </body>
</html>